/**
 * 宿舍管理员模型
 */
package dms.model.role;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.BeanFactory;

import dms.dto.BulletinDTO;
import dms.dto.DormSupervisorDTO;
import dms.dto.MailDTO;
import dms.dto.NoticeDTO;
import dms.model.Building;
import dms.model.form.Mail;
import dms.model.form.Notice;
import dms.model.form.PurchaseItem;
import dms.model.form.Repair;
import dms.model.util.PageIterator;
import dms.repository.BulletinRepository;
import dms.repository.MailRepository;
import dms.repository.NoticeRepository;
import dms.repository.PurchaseItemRepository;
import dms.repository.SystemAdministratorRepository;

/**
 * @author 李健
 *
 */
public class DormSupervisor {
	
	//实体数据
	private Long id;
	private Building building;
	private Account account;
	
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the building
	 */
	public Building getBuilding() {
		return building;
	}
	/**
	 * @param building the building to set
	 */
	public void setBuilding(Building building) {
		this.building = building;
	}

	/**
	 * @return the account
	 */
	public Account getAccount() {
		return account;
	}

	/**
	 * @param account the account to set
	 */
	public void setAccount(Account account) {
		this.account = account;
	}

	/**
	 * 
	 */
	public DormSupervisor() {
		super();
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DormSupervisor other = (DormSupervisor) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
}
